Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use type index for now, and prep 0.4.2 release #24

Merged
merged 1 commit into from
Mar 26, 2024
Merged

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Mar 26, 2024

After getting some errors in Subxt, I realised that older metadata produced with versions of scale-info prior to 2.11.1 and using the retain method (ie anything that's had pallets/runtime APIs stripped out of it) would produce panics in scale-typegen. So, for now, let's revert to using the type index rather than ID to avoid breaking using Subxt etc against older metadata files.

Tested this against subxt with pre-2.11.1 metadatas and it seemed to be ok, whereas without it you run into panics (unless you update artifacts)

@jsdw jsdw merged commit d5609ad into master Mar 26, 2024
2 checks passed
@jsdw jsdw deleted the jsdw-use-type-index branch March 26, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants